package com.ruibang.glass.purchase.service.impl;


import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruibang.glass.purchase.entity.PurchaseRequestItems;
import com.ruibang.glass.purchase.mapper.PurchasePurchaseRequestItemsMapper;
import com.ruibang.glass.purchase.service.PurchasePurchaseRequestItemsService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 采购申请物品列表 服务实现类
 * </p>
 *
 * @author mameng
 * @since 2024-03-26
 */
@Service
public class PurchasePurchaseRequestItemsServiceImpl extends ServiceImpl<PurchasePurchaseRequestItemsMapper, PurchaseRequestItems> implements PurchasePurchaseRequestItemsService {

    @Override
    public void deleteByAppId(String id) {
        if (StringUtils.isNotBlank(id)){
            lambdaUpdate().eq(PurchaseRequestItems::getPurchaseApplicationId,id).remove();
        }
    }
}
